home *** CD-ROM | disk | FTP | other *** search
Unknown | 1994-07-14 | 2.5 KB |
open in:
MacOS 8.1
|
Win98
|
DOS
view JSON data
|
view as text
This file was not able to be converted.
This format is not currently supported by dexvert.
Confidence | Program | Detection | Match Type | Support
|
---|
10%
| dexvert
| Jesper Olsen Module (music/jesperOlsen)
| magic
| Supported |
1%
| dexvert
| TTComp Archive (archive/ttcomp)
| fallback
| Supported |
100%
| file
| TTComp archive data, binary, 2K dictionary
| default (weak)
| |
99%
| file
| data
| default
| |
66%
| TrID
| TTComp archive compressed (bin-2K)
| default (weak)
| |
33%
| TrID
| Adobe PhotoShop Brush
| default (weak)
|
|
hex view+--------+-------------------------+-------------------------+--------+--------+
|00000000| 00 05 00 01 00 00 00 1a | 00 00 00 00 00 00 00 1a |........|........|
|00000010| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000020| 00 00 00 00 00 00 00 00 | 00 00 00 05 00 05 00 00 |........|........|
|00000030| 00 24 00 00 0b 45 00 00 | 00 24 61 32 42 44 00 00 |.$...E..|.$a2BD..|
|00000040| 4e 16 00 00 20 19 00 00 | 00 00 00 00 00 00 00 00 |N... ...|........|
|00000050| 00 00 0a 53 65 74 44 65 | 66 61 75 6c 74 00 00 06 |...SetDe|fault...|
|00000060| 00 00 00 00 00 af 00 00 | 0b 46 00 00 00 af 00 00 |........|.F......|
|00000070| 00 14 03 c1 00 28 05 7e | 00 ff 00 00 00 00 00 00 |.....(.~|........|
|00000080| 0f a8 00 00 00 00 4e 1c | 00 00 00 09 00 00 00 04 |......N.|........|
|00000090| 00 04 ff fc ff fa 00 04 | 00 04 ff fc ff fc 00 00 |........|........|
|000000a0| 00 00 00 00 00 00 83 00 | 0b 40 10 6b 53 63 72 65 |........|.@.kScre|
|000000b0| 65 6e 41 50 49 2f 31 39 | 39 39 36 00 06 47 65 6e |enAPI/19|996..Gen|
|000000c0| 65 76 61 00 00 55 4f 53 | 45 72 72 20 53 65 74 44 |eva..UOS|Err SetD|
|000000d0| 65 66 61 75 6c 74 28 73 | 68 6f 72 74 20 6e 65 77 |efault(s|hort new|
|000000e0| 56 52 65 66 4e 75 6d 2c | 20 6c 6f 6e 67 20 6e 65 |VRefNum,| long ne|
|000000f0| 77 44 69 72 49 44 2c 20 | 73 68 6f 72 74 20 2a 6f |wDirID, |short *o|
|00000100| 6c 64 56 52 65 66 4e 75 | 6d 2c 20 6c 6f 6e 67 20 |ldVRefNu|m, long |
|00000110| 2a 6f 6c 64 44 69 72 49 | 44 29 3b 00 00 00 06 00 |*oldDirI|D);.....|
|00000120| 00 00 00 00 7f 00 00 0b | 47 00 00 00 7f 00 00 00 |........|G.......|
|00000130| 00 03 c1 00 14 05 7e 00 | ff 00 00 00 00 00 00 0f |......~.|........|
|00000140| a8 00 00 00 00 4e 1d 00 | 00 00 09 00 00 00 04 00 |.....N..|........|
|00000150| 04 ff fc ff fa 00 04 00 | 04 ff fc ff fc 00 00 00 |........|........|
|00000160| 00 00 00 00 00 83 00 0b | 40 14 6b 53 63 72 65 65 |........|@.kScree|
|00000170| 6e 4f 6e 65 4c 69 6e 65 | 2f 31 39 39 39 37 00 06 |nOneLine|/19997..|
|00000180| 47 65 6e 65 76 61 00 00 | 21 53 65 74 20 64 65 66 |Geneva..|!Set def|
|00000190| 61 75 6c 74 20 76 6f 6c | 75 6d 65 20 61 6e 64 20 |ault vol|ume and |
|000001a0| 64 69 72 65 63 74 6f 72 | 79 2e 00 00 00 06 00 00 |director|y.......|
|000001b0| 00 00 00 44 00 00 0b 48 | 00 00 00 44 00 00 00 00 |...D...H|...D....|
|000001c0| 02 6b 04 40 02 6c 01 00 | 00 00 00 00 00 01 0f f1 |.k.@.l..|........|
|000001d0| 00 00 00 00 00 00 00 00 | 00 0c 00 00 00 00 00 00 |........|........|
|000001e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000001f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000200| 00 06 00 00 00 00 00 8f | 00 00 0b 49 00 00 00 8f |........|...I....|
|00000210| 00 00 00 00 02 6b 02 28 | 03 c1 00 ff 00 00 00 00 |.....k.(|........|
|00000220| 00 00 0f a8 00 00 00 00 | 4e 16 00 00 00 09 00 00 |........|N.......|
|00000230| 00 04 00 04 ff fc ff fa | 00 04 00 04 ff fc ff fc |........|........|
|00000240| 00 00 00 00 00 00 00 00 | 83 00 0b 40 0b 6c 69 6e |........|...@.lin|
|00000250| 6b 73 2f 31 39 39 39 30 | 00 06 4d 6f 6e 61 63 6f |ks/19990|..Monaco|
|00000260| 00 00 24 61 32 42 31 2c | 52 65 73 74 6f 72 65 44 |..$a2B1,|RestoreD|
|00000270| 65 66 61 75 6c 74 0d 61 | 32 42 44 2c 53 65 74 44 |efault.a|2BD,SetD|
|00000280| 65 66 61 75 6c 74 0d 00 | 16 00 01 00 00 00 00 00 |efault..|........|
|00000290| 10 00 0c 00 01 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000002a0| 06 00 00 00 00 07 51 00 | 00 0b 4a 00 00 07 51 00 |......Q.|..J...Q.|
|000002b0| 00 00 00 00 00 75 30 02 | 6b 01 ff 00 00 00 00 00 |.....u0.|k.......|
|000002c0| 00 0f a8 00 00 00 00 4e | 1f 00 00 00 09 00 00 00 |.......N|........|
|000002d0| 04 00 04 ff fc ff fa 00 | 04 00 04 ff fc ff fc 00 |........|........|
|000002e0| 00 00 00 00 00 00 00 83 | 00 0b 40 0a 62 6f 64 79 |........|..@.body|
|000002f0| 2f 31 39 39 39 39 00 06 | 4d 6f 6e 61 63 6f 00 06 |/19999..|Monaco..|
|00000300| 97 4f 53 45 72 72 20 53 | 65 74 44 65 66 61 75 6c |.OSErr S|etDefaul|
|00000310| 74 28 73 68 6f 72 74 20 | 6e 65 77 56 52 65 66 4e |t(short |newVRefN|
|00000320| 75 6d 2c 20 6c 6f 6e 67 | 20 6e 65 77 44 69 72 49 |um, long| newDirI|
|00000330| 44 2c 20 73 68 6f 72 74 | 20 2a 6f 6c 64 56 52 65 |D, short| *oldVRe|
|00000340| 66 4e 75 6d 2c 20 6c 6f | 6e 67 20 2a 6f 6c 64 44 |fNum, lo|ng *oldD|
|00000350| 69 72 49 44 29 3b 0d 0d | 49 4e 50 55 54 3a 20 20 |irID);..|INPUT: |
|00000360| 6e 65 77 56 52 65 66 4e | 75 6d 0d 20 20 20 20 20 |newVRefN|um. |
|00000370| 20 20 20 6e 65 77 44 69 | 72 49 44 0d 4f 55 54 50 | newDi|rID.OUTP|
|00000380| 55 54 3a 20 6f 6c 64 56 | 52 65 66 4e 75 6d 0d 20 |UT: oldV|RefNum. |
|00000390| 20 20 20 20 20 20 20 6f | 6c 64 44 69 72 49 44 0d | o|ldDirID.|
|000003a0| 52 45 53 55 4c 54 3a 20 | 4f 53 45 72 72 0d 0d 54 |RESULT: |OSErr..T|
|000003b0| 68 65 20 53 65 74 44 65 | 66 61 75 6c 74 20 66 75 |he SetDe|fault fu|
|000003c0| 6e 63 74 69 6f 6e 20 73 | 65 74 73 20 74 68 65 20 |nction s|ets the |
|000003d0| 64 65 66 61 75 6c 74 20 | 76 6f 6c 75 6d 65 20 61 |default |volume a|
|000003e0| 6e 64 20 64 69 72 65 63 | 74 6f 72 79 20 74 6f 20 |nd direc|tory to |
|000003f0| 74 68 65 20 76 6f 6c 75 | 6d 65 0d 73 70 65 63 69 |the volu|me.speci|
|00000400| 66 69 65 64 20 62 79 20 | 6e 65 77 56 52 65 66 4e |fied by |newVRefN|
|00000410| 75 6d 20 61 6e 64 20 74 | 68 65 20 64 69 72 65 63 |um and t|he direc|
|00000420| 74 6f 72 79 20 73 70 65 | 63 69 66 69 65 64 20 62 |tory spe|cified b|
|00000430| 79 20 6e 65 77 44 69 72 | 49 44 2e 20 54 68 65 20 |y newDir|ID. The |
|00000440| 63 75 72 72 65 6e 74 0d | 64 65 66 61 75 6c 74 20 |current.|default |
|00000450| 76 6f 6c 75 6d 65 20 61 | 6e 64 20 64 69 72 65 63 |volume a|nd direc|
|00000460| 74 6f 72 79 20 61 72 65 | 20 72 65 74 75 72 6e 65 |tory are| returne|
|00000470| 64 20 69 6e 20 6f 6c 64 | 56 52 65 66 4e 75 6d 20 |d in old|VRefNum |
|00000480| 61 6e 64 20 6f 6c 64 44 | 69 72 20 61 6e 64 20 73 |and oldD|ir and s|
|00000490| 68 6f 75 6c 64 20 62 65 | 0d 75 73 65 64 20 74 6f |hould be|.used to|
|000004a0| 20 72 65 73 74 6f 72 65 | 20 74 68 69 6e 67 73 20 | restore| things |
|000004b0| 74 6f 20 74 68 65 69 72 | 20 70 72 65 76 69 6f 75 |to their| previou|
|000004c0| 73 20 63 6f 6e 64 69 74 | 69 6f 6e 20 2a 61 73 20 |s condit|ion *as |
|000004d0| 73 6f 6f 6e 20 61 73 20 | 70 6f 73 73 69 62 6c 65 |soon as |possible|
|000004e0| 2a 20 77 69 74 68 20 74 | 68 65 0d 52 65 73 74 6f |* with t|he.Resto|
|000004f0| 72 65 44 65 66 61 75 6c | 74 20 66 75 6e 63 74 69 |reDefaul|t functi|
|00000500| 6f 6e 2e 20 54 68 65 73 | 65 20 74 77 6f 20 66 75 |on. Thes|e two fu|
|00000510| 6e 63 74 69 6f 6e 73 20 | 61 72 65 20 64 65 73 69 |nctions |are desi|
|00000520| 67 6e 65 64 20 74 6f 20 | 62 65 20 75 73 65 64 20 |gned to |be used |
|00000530| 61 73 20 61 20 77 72 61 | 70 70 65 72 0d 61 72 6f |as a wra|pper.aro|
|00000540| 75 6e 64 20 53 74 61 6e | 64 61 72 64 20 43 20 49 |und Stan|dard C I|
|00000550| 2f 4f 20 72 6f 75 74 69 | 6e 65 73 20 77 68 65 72 |/O routi|nes wher|
|00000560| 65 20 74 68 65 20 6c 6f | 63 61 74 69 6f 6e 20 6f |e the lo|cation o|
|00000570| 66 20 74 68 65 20 66 69 | 6c 65 20 69 73 20 69 6d |f the fi|le is im|
|00000580| 70 6c 69 65 64 20 74 6f | 20 62 65 20 74 68 65 0d |plied to| be the.|
|00000590| 64 65 66 61 75 6c 74 20 | 76 6f 6c 75 6d 65 20 61 |default |volume a|
|000005a0| 6e 64 20 64 69 72 65 63 | 74 6f 72 79 2e 20 49 6e |nd direc|tory. In|
|000005b0| 20 6f 74 68 65 72 20 77 | 6f 72 64 73 2c 20 74 68 | other w|ords, th|
|000005c0| 69 73 20 69 73 20 68 6f | 77 20 79 6f 75 20 73 68 |is is ho|w you sh|
|000005d0| 6f 75 6c 64 20 75 73 65 | 20 74 68 65 73 65 0d 66 |ould use| these.f|
|000005e0| 75 6e 63 74 69 6f 6e 73 | 3a 0d 0d 20 20 20 20 65 |unctions|:.. e|
|000005f0| 72 72 20 3d 20 53 65 74 | 44 65 66 61 75 6c 74 28 |rr = Set|Default(|
|00000600| 6e 65 77 56 52 65 66 4e | 75 6d 2c 20 6e 65 77 44 |newVRefN|um, newD|
|00000610| 69 72 49 44 2c 20 26 6f | 6c 64 56 52 65 66 4e 75 |irID, &o|ldVRefNu|
|00000620| 6d 2c 20 26 6f 6c 64 44 | 69 72 49 44 29 3b 0d 20 |m, &oldD|irID);. |
|00000630| 20 20 20 69 66 20 28 21 | 65 72 72 29 0d 20 20 20 | if (!|err). |
|00000640| 20 20 20 20 20 7b 0d 20 | 20 20 20 20 20 20 20 20 | {. | |
|00000650| 20 20 20 2d 2d 20 63 61 | 6c 6c 20 74 68 65 20 53 | -- ca|ll the S|
|00000660| 74 64 69 6f 20 66 75 6e | 63 74 69 6f 6e 73 20 6c |tdio fun|ctions l|
|00000670| 69 6b 65 20 72 65 6d 6f | 76 65 2c 20 72 65 6e 61 |ike remo|ve, rena|
|00000680| 6d 65 2c 20 74 6d 70 66 | 69 6c 65 2c 20 66 6f 70 |me, tmpf|ile, fop|
|00000690| 65 6e 2c 20 20 20 2d 2d | 0d 20 20 20 20 20 20 20 |en, --|. |
|000006a0| 20 20 20 20 20 2d 2d 20 | 66 72 65 6f 70 65 6e 2c | -- |freopen,|
|000006b0| 20 65 74 63 2e 20 6f 72 | 20 6e 6f 6e 2d 41 4e 53 | etc. or| non-ANS|
|000006c0| 49 20 65 78 74 65 6e 74 | 69 6f 6e 73 20 6c 69 6b |I extent|ions lik|
|000006d0| 65 20 66 64 6f 70 65 6e | 2c 20 66 73 65 74 66 69 |e fdopen|, fsetfi|
|000006e0| 6c 65 69 6e 66 6f 2c 20 | 2d 2d 0d 20 20 20 20 20 |leinfo, |--. |
|000006f0| 20 20 20 20 20 20 20 2d | 2d 20 63 72 65 61 74 65 | -|- create|
|00000700| 2c 20 6f 70 65 6e 2c 20 | 75 6e 6c 69 6e 6b 2c 20 |, open, |unlink, |
|00000710| 65 74 63 2e 20 68 65 72 | 65 21 20 20 20 20 20 20 |etc. her|e! |
|00000720| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00000730| 20 20 20 20 20 20 20 20 | 20 20 2d 2d 0d 0d 20 20 | | --.. |
|00000740| 20 20 20 20 20 20 20 20 | 20 20 65 72 72 20 3d 20 | | err = |
|00000750| 52 65 73 74 6f 72 65 44 | 65 66 61 75 6c 74 28 6f |RestoreD|efault(o|
|00000760| 6c 64 56 52 65 66 4e 75 | 6d 2c 20 6f 6c 64 44 69 |ldVRefNu|m, oldDi|
|00000770| 72 49 44 29 3b 0d 20 20 | 20 20 20 20 20 20 7d 0d |rID);. | }.|
|00000780| 0d 42 79 20 75 73 69 6e | 67 20 74 68 65 73 65 20 |.By usin|g these |
|00000790| 66 75 6e 63 74 69 6f 6e | 73 20 61 73 20 61 20 77 |function|s as a w|
|000007a0| 72 61 70 70 65 72 2c 20 | 79 6f 75 20 77 6f 6e d5 |rapper, |you won.|
|000007b0| 74 20 6e 65 65 64 20 74 | 6f 20 6f 70 65 6e 20 61 |t need t|o open a|
|000007c0| 20 77 6f 72 6b 69 6e 67 | 20 64 69 72 65 63 74 6f | working| directo|
|000007d0| 72 79 0d 28 62 65 63 61 | 75 73 65 20 74 68 65 79 |ry.(beca|use they|
|000007e0| 20 75 73 65 20 48 53 65 | 74 56 6f 6c 29 20 61 6e | use HSe|tVol) an|
|000007f0| 64 20 79 6f 75 20 77 6f | 6e d5 74 20 68 61 76 65 |d you wo|n.t have|
|00000800| 20 74 6f 20 77 6f 72 72 | 79 20 61 62 6f 75 74 20 | to worr|y about |
|00000810| 74 68 65 20 65 66 66 65 | 63 74 73 20 6f 66 20 75 |the effe|cts of u|
|00000820| 73 69 6e 67 0d 48 53 65 | 74 56 6f 6c 20 28 64 6f |sing.HSe|tVol (do|
|00000830| 63 75 6d 65 6e 74 65 64 | 20 69 6e 20 54 65 63 68 |cumented| in Tech|
|00000840| 6e 69 63 61 6c 20 4e 6f | 74 65 20 23 31 34 30 3a |nical No|te #140:|
|00000850| 20 57 68 79 20 50 42 48 | 53 65 74 56 6f 6c 20 69 | Why PBH|SetVol i|
|00000860| 73 20 44 61 6e 67 65 72 | 6f 75 73 20 0d 61 6e 64 |s Danger|ous .and|
|00000870| 20 69 6e 20 74 68 65 20 | 49 6e 73 69 64 65 20 4d | in the |Inside M|
|00000880| 61 63 69 6e 74 6f 73 68 | 3a 20 46 69 6c 65 73 20 |acintosh|: Files |
|00000890| 62 6f 6f 6b 20 69 6e 20 | 74 68 65 20 64 65 73 63 |book in |the desc|
|000008a0| 72 69 70 74 69 6f 6e 20 | 6f 66 20 74 68 65 20 48 |ription |of the H|
|000008b0| 53 65 74 56 6f 6c 20 61 | 6e 64 20 0d 50 42 48 53 |SetVol a|nd .PBHS|
|000008c0| 65 74 56 6f 6c 20 66 75 | 6e 63 74 69 6f 6e 73 29 |etVol fu|nctions)|
|000008d0| 20 62 65 63 61 75 73 65 | 20 74 68 65 20 64 65 66 | because| the def|
|000008e0| 61 75 6c 74 20 76 6f 6c | 75 6d 65 2f 64 69 72 65 |ault vol|ume/dire|
|000008f0| 63 74 6f 72 79 20 69 73 | 20 72 65 73 74 6f 72 65 |ctory is| restore|
|00000900| 64 20 62 65 66 6f 72 65 | 20 0d 67 69 76 69 6e 67 |d before| .giving|
|00000910| 20 75 70 20 63 6f 6e 74 | 72 6f 6c 20 74 6f 20 63 | up cont|rol to c|
|00000920| 6f 64 65 20 74 68 61 74 | 20 6d 69 67 68 74 20 62 |ode that| might b|
|00000930| 65 20 61 66 66 65 63 74 | 65 64 20 62 79 20 48 53 |e affect|ed by HS|
|00000940| 65 74 56 6f 6c 2e 0d 55 | 73 65 20 74 68 69 73 20 |etVol..U|se this |
|00000950| 61 6e 64 20 74 68 65 20 | 62 65 6c 6f 77 20 63 61 |and the |below ca|
|00000960| 6c 6c 20 69 6e 73 74 65 | 61 64 20 6f 66 20 74 68 |ll inste|ad of th|
|00000970| 65 20 6f 6c 64 2d 73 74 | 79 6c 65 20 46 53 70 53 |e old-st|yle FSpS|
|00000980| 65 74 57 44 20 61 6e 64 | 20 46 53 70 52 65 73 65 |etWD and| FSpRese|
|00000990| 74 57 44 2e 20 0d 0d 0d | 00 66 00 05 00 00 00 00 |tWD. ...|.f......|
|000009a0| 00 0b 00 09 00 04 00 00 | 00 09 00 00 00 00 00 00 |........|........|
|000009b0| 00 00 01 ea 00 0b 00 09 | 00 04 05 00 00 09 00 00 |........|........|
|000009c0| 00 00 00 00 00 00 01 f8 | 00 0b 00 09 00 04 00 00 |........|........|
|000009d0| 00 09 00 00 00 00 00 00 | 00 00 04 4f 00 0b 00 09 |........|...O....|
|000009e0| 00 04 05 00 00 09 00 00 | 00 00 00 00 00 00 04 5d |........|.......]|
|000009f0| 00 0b 00 09 00 04 00 00 | 00 09 00 00 00 00 00 00 |........|........|
+--------+-------------------------+-------------------------+--------+--------+